<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="cn.sumpu.app.coolsk.domain.AdminUser,cn.sumpu.app.coolsk.web.util.AdminUtil" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%
AdminUser user = AdminUtil.getUser();
%>
	<sec:authorize ifAnyGranted="ROLE_ADMIN">
	[
    {"text": "系统管理", "isexpand": false, "children": [
        { "text": "用户管理","url":"/misc/admin/user.htm"},
        { "text": "角色管理","url":"/misc/admin/role.htm"},
        {"text": "资源管理","url":"/misc/admin/resource.htm"},
        { "text": "会员管理","url":"/misc/info/tomemberlist.htm"},
        { "text": "系统日志","url":"/misc/info/toGetSyslog.htm"}
        ]
    },
    {"text": "旅游管理", "isexpand": false, "children": [
    	{ "text": "稿件管理","url":"/misc/info/toGetInfo.htm"},
    	{ "text": "景区管理","url":"/misc/scenic/scenic.htm"},
    	{ "text": "酒店管理","url":"/misc/hotel/hotel.htm"},
        { "text": "产品管理","url":"/misc/product/product.htm"},
        { "text": "点评管理","url":"/misc/discomment/discomment.htm"},
        { "text": "行程管理","url":"/misc/journey/journey.htm"}
        ]
      },
      {"text": "订单管理", "isexpand": false, "children": [
        { "text": "订单","url":"/misc/order/order.htm"},
        { "text": "门票","url":"/misc/order/companyorder.htm?type=01"},
        { "text": "酒店","url":"/misc/order/companyorder.htm?type=02"},
        { "text": "产品","url":"/misc/order/companyorder.htm?type=03"}
        ]
      },
    {"text": "数据管理","isexpand": false,"children": [
        { "text": "模版管理","url":"/misc/template/template.htm"},
        { "text": "设置管理","url":"/misc/config/config.htm"},
        { "text": "公司管理","url":"/misc/company/company.htm"},
        { "text": "站内信","url":"/misc/info/toAddMessage.htm"}
        ]
      },
    {
    	"text": "内容管理","isexpand": false, "children": [${treeJson }]
    }
    ]
    </sec:authorize>
    <sec:authorize ifAnyGranted="ROLE_CONTENT">
	[
	{"text": "系统管理", "isexpand": false, "children": [
        { "text": "密码修改","url":"/misc/admin/modifyPass.htm?id=<%=user.getId() %>"}
        ]
    },
    {"text": "旅游管理", "isexpand": false, "children": [
    	{ "text": "稿件管理","url":"/misc/info/toGetInfo.htm"},
    	{ "text": "景区管理","url":"/misc/scenic/scenic.htm"},
    	{ "text": "酒店管理","url":"/misc/hotel/hotel.htm"},
        { "text": "产品管理","url":"/misc/product/product.htm"},
        { "text": "点评管理","url":"/misc/discomment/discomment.htm"},
        { "text": "行程管理","url":"/misc/journey/journey.htm"}
        ]
      },
      {"text": "订单管理", "isexpand": false, "children": [
        { "text": "订单","url":"/misc/order/order.htm"},
        { "text": "门票","url":"/misc/order/companyorder.htm?type=01"},
        { "text": "酒店","url":"/misc/order/companyorder.htm?type=02"},
        { "text": "产品","url":"/misc/order/companyorder.htm?type=03"}
        ]
      },
    {"text": "数据管理","isexpand": false,"children": [
        { "text": "模版管理","url":"/misc/template/template.htm"},
        { "text": "设置管理","url":"/misc/config/config.htm"},
        { "text": "公司管理","url":"/misc/company/company.htm"},
        { "text": "站内信","url":"/misc/info/toAddMessage.htm"}
        ]
      },
    {
    	"text": "内容管理","isexpand": false, "children": [${treeJson }]
    }
    ]
    </sec:authorize>
    <sec:authorize ifAnyGranted="ROLE_CUSTOM">
	[
	{"text": "系统管理", "isexpand": false, "children": [
        { "text": "密码修改","url":"/misc/admin/modifyPass.htm?id=<%=user.getId() %>"}
        ]
    },
      {"text": "客服管理", "isexpand": true, "children": [
        { "text": "订单","url":"/misc/order/order.htm"},
        { "text": "站内信","url":"/misc/info/toAddMessage.htm"}
        ]
      }
    ]
    </sec:authorize>
    <sec:authorize ifAnyGranted="ROLE_COMPANY">
	[
	{"text": "系统管理", "isexpand": false, "children": [
        { "text": "密码修改","url":"/misc/admin/modifyPass.htm?id=<%=user.getId() %>"}
        ]
    },
      {"text": "订单管理", "isexpand": true, "children": [
        { "text": "门票","url":"/misc/order/companyorder.htm?type=01"},
        { "text": "酒店","url":"/misc/order/companyorder.htm?type=02"},
        { "text": "产品","url":"/misc/order/companyorder.htm?type=03"}
        ]
      }
    ]
    </sec:authorize>
